package com.mxpio.webapp.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 服务器操作系统表
 *
 * @author: Cheng
 * @date: 2022/10/31
 */



@Entity
@Table(name = "MI_MONITOR_SERVER_OS")
@Schema(description = "HTTP信息表")
@Data
@ToString
public class MonitorServerOs extends BaseEntity {

    @Id
    @Generator
    @Schema(description = "主键ID")
    @Column(name = "ID",length = 64)
    private String id;

    @Schema(description = "IP地址")
    @Column(name ="IP",length = 32)
    private String ip;

    @Schema(description = "服务器名")
    @Column(name ="SERVER_NAME")
    private String serverName;

    @Schema(description = "操作系统名称")
    @Column(name ="OS_NAME")
    private String osName;

    @Schema(description = "操作系统架构")
    @Column(name ="OS_ARCH")
    private String osArch;

    @Schema(description = "操作系统版本")
    @Column(name ="OS_VERSION")
    private String osVersion;

    @Schema(description = "用户名称")
    @Column(name ="USER_NAME")
    private String userName;

    @Schema(description = "用户主目录")
    @Column(name ="USER_HOME")
    private String userHome;

    @Schema(description = "操作系统时区")
    @Column(name ="OS_TIME_ZONE")
    private String osTimeZone;
}
